<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>面板示例</title>
	<link rel="stylesheet" type="text/css" href="../../dist/css/xxui.min.css">
	<script type="text/javascript" src="../../dist/js/jquery-1.11.3.min.js"></script>
	<script type="text/javascript" src="../../dist/js/jquery.xxui.min.js"></script>
	 <link rel="stylesheet" type="text/css" href="../demo.css">
    <script src="../jquery-tag-demo.js" type="text/javascript"></script>
</head>
<body>
		<div class="demo-exp-code entry-content"> 
			<table title="菜单管理" class="xxui-datagrid" id="treegrid2" style="width:680px;height:400px"
			data-options="rownumbers:true,autoSizeColumn:true">
				<thead>
					<tr>
						<th field="menuName" width="160" align="left">菜单名</th>
						<th field="menuLink" width="100" align="right">链接</th>
						<th field="menuCode" width="160" align="right">代码</th>
						<th field="menuSort" width="60" align="right">顺序</th>
						<th field="menuEx" width="60" align="right">表达式</th>
					</tr>
				</thead>
			</table>
			<script type="text/javascript">
				$(function(){
					var json = {"total":19,"rows":[
						{"id":1,"menuName":"配置管理","menuLink":"cfgmgr.csp","menuCode":"cfgManager","menuSort":"","menuEx":""},
						{"id":11,"menuName":"菜单管理","menuLink":"menumgr.csp","menuCode":"menuManager","menuSort":1,"menuEx":"&name=1","_parentId":1},
						{"id":12,"menuName":"用户管理","menuLink":"usermgr.csp","menuCode":"userManager","menuSort":2,"menuEx":"&name=1","_parentId":1},
						{"id":13,"menuName":"安全管理","menuLink":"groupmgr.csp","menuCode":"groupManager","menuSort":3,"menuEx":"&name=1","_parentId":1},
						
						{"id":2,"menuName":"医生站","menuLink":"docmgr.csp","menuCode":"docManager","menuSort":"","menuEx":""},
						{"id":14,"menuName":"便民门诊","menuLink":"regmgr.csp","menuCode":"regManager","menuSort":1,"menuEx":"&name=1","_parentId":2},
						{"id":15,"menuName":"诊断录入","menuLink":"diagmgr.csp","menuCode":"diagManager","menuSort":2,"menuEx":"&name=1","_parentId":2},
						{"id":16,"menuName":"医嘱录入","menuLink":"ordermgr.csp","menuCode":"orderManager","menuSort":3,"menuEx":"&name=1","_parentId":2},
						{"id":17,"menuName":"病历书写","menuLink":"eprmgr.csp","menuCode":"eprManager","menuSort":4,"menuEx":"&name=1","_parentId":2},
						{"id":18,"menuName":"病人列表","menuLink":"patlist.csp","menuCode":"patlistManager","menuSort":5,"menuEx":"&name=1","_parentId":2},
						{"id":19,"menuName":"历次就诊","menuLink":"admlist.csp","menuCode":"admlistManager","menuSort":6,"menuEx":"&name=1","_parentId":2}
					]};
					//$("#treegrid2").datagrid("loadData",json);
					//return;
					var treegridObj2 = $XUI.datagrid("#treegrid2");
					treegridObj2.loadData(json);
				})
				
			</script>
		</div>
	<prettyprint/>	
</body>
</html>